function urlParse(url) {
  var a = urlParse.a = urlParse.a || document.createElement('a');
  a.href = url;
  return {
    scheme:   /^[^:]+/.exec(a.protocol)[0],
    host:     a.host,
    hostname: a.hostname,
    pathname: a.pathname,
    search:   a.search,
    hash:     a.hash
  };
}
